<?php 

session_start();
include "biblioteca/funcao.php";
?>
<!DOCTYPE html>
<html>
  
  <head>
      
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="plugin/estilo.css">
        <link rel="stylesheet" href="plugin/bootstrap/css/bootstrap-responsive.css">
        <link rel="stylesheet" href="plugin/bootstrap/css/bootstrap.css"> 
        <script type="text/javascript" src="plugin/jquery-1.10.2.min.js"></script>
        <script type="text/javascript" src="plugin/bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="plugin/funcao.js"></script>

        <!--Calendario-->
        <link href="plugin/calendario/CalendarControl.css" rel="stylesheet" type="text/css">
        <script src="plugin/calendario/CalendarControl.js" language="javascript"></script>

        <!-- tree -->
        <link rel="stylesheet" href="plugin/tree/jquery.treeview.css" />
        <link rel="stylesheet" href="plugin/tree/demo/screen.css" />
        <script src="plugin/tree/lib/jquery.js" type="text/javascript"></script>
        <script src="plugin/tree/lib/jquery.cookie.js" type="text/javascript"></script>
        <script src="plugin/tree/jquery.treeview.js" type="text/javascript"></script>
        <script type="text/javascript" src="plugin/tree/demo/demo.js"></script>

        <!-- editor -->
        <script type="text/javascript" src="plugin/ckeditor/ckeditor.js"></script>

        <!-- seleção de cores -->
        <script type="text/javascript" src="plugin/jscolor/jscolor.js"></script>
        
        <!-- galeria de fotos -->
        <script src="plugin/lightbox/js/modernizr.custom.js"></script>
	<!-- <link rel="stylesheet" href="plugin/lightbox/css/screen.css" media="screen"/> -->
	<link rel="stylesheet" href="plugin/lightbox/css/lightbox.css" media="screen"/>
        
        <!-- mascaras -->
        <script src="plugin/mascaras/jquery.maskedinput.js" type="text/javascript"></script>
        <script type="text/javascript">
        $(document).ready(function(){
                $(".hora").mask("99:99");
        });
        </script>
        
        <title><?=$_SESSION['pro_nome'];?></title>
        <link href="midia/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
            <!--[if lt IE 9]>
            <script src="plugin/html5.js"></script>
        <![endif]--> 

        <?php 
        
        include "biblioteca/definicoes.php";
        
        include "comp/".diretorio($_SESSION['pag'])."/php/{$_SESSION['pag']}.php"; 
        
        ?>
      
  </head>
   
  <body <?php echo $relogio; ?>>

      <header>
           
        <div id="topo">

            <div id="topo_top"><?php  include "mod/menu/usuario.php"; ?></div>

            <div id="topo_bottom">

                <div id="topo_bottom_esq">
                    <a href="?pag=<?php echo $_SESSION['url'];?>"><img src="<?=$_SESSION['pro_url'];?>" title="<?=$_SESSION['pro_nome'];?>" alt="<?=$_SESSION['pro_nome'];?>"></a>
                    <h1><?=$_SESSION['pro_nome'];?></h1>
                </div>
                
                <div id="topo_bottom_dir">
                    <?php 
                    include "mod/traducao/index.php";
                    if (!isset($_SESSION['aut'])){ include "mod/relogio/index.php"; }
                    ?>
                </div>

            </div>

        </div>
          
        <div id="menu"><?php include "mod/menu/index.php"; ?></div>
           
    </header>
      
    <section>
    
        <div class="container">
            
            <article>
                
                <?php if ( ($_SESSION['pag'] != "helpdeskadm") && ($_SESSION['pag'] != "helpdesk") && ($_SESSION['pag'] != "home") ) { ?>
                <form name='form' action='' method='post' enctype='multipart/form-data'>  
                <?php
                }
                include "mod/titulo/index.php";
                echo "<div id='txt'>";
                    include "mod/aviso/index.php";
                    include "comp/".diretorio($_SESSION['pag'])."/html/{$_SESSION['pag']}.php"; 
                echo "</div>";
                if ( ($_SESSION['pag'] != "helpdeskadm") && ($_SESSION['pag'] != "helpdesk") && ($_SESSION['pag'] != "home") ) { 
                ?>
                </form>
                <?php } ?>
                
            </article>

        </div>

    </section>
      
      <footer>
          
          <div class="container">
              
              <div id="rodape">
                  
                  <div id="rodape_esq">
                      
                  </div>
                  
                  <div id="rodape_dir">
                      
                  </div>
                
              </div>
              
          </div>
          
          <div class="container">
              <p><a href='https://www.ccarj.intraer/' target="_blank">Desenvolvido pelo Centro de Computação da Aeronáutica do Rio de Janeiro - CCARJ</a></p>
          </div>
          
      </footer>

  </body>
  
</html>